/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
  const { router, controller } = app;

  app.ws.route('/ws', controller.chat.index);
  router.get('/', controller.home.index);
};
